

from django.urls import path
from rest_framework.routers import SimpleRouter
# from Home.views import NavigationModelViewset,CategoryApiView,CoueseApiView,HomeCourse,CourseTitle,TestRedis,CourseDetail
from Home.views import *
from Home.tools.Es import insert_data_to_es,testaa
from Home.views_Matplotlib import draw

s1=SimpleRouter()
s1.register("header",NavigationModelViewset)


urlpatterns = [
    path("catrgory/",CategoryApiView.as_view()),
    path("catrgory/<int:id>/",CoueseApiView.as_view()),
    path("homeCourse/",HomeCourse.as_view()),
    path("courseTitle/",CourseTitle.as_view()),
    path("testMyredis/",TestRedis.as_view()),
    path("courseDetail/<int:id>/",CourseDetail.as_view()),
    path("messageView/",MessageView.as_view()),
    path("loginView/",LoginView.as_view()),
    path("dingdingCallBack/",DingDingCallBack.as_view()),
    path("dingding/",ToDingDingView.as_view()),
    path("shopCarView/",ShopCarView.as_view()),
    path("cart/",ShopCarView.as_view()),
    path("order/",OrdersView.as_view()),
    path("usercoupon/",UserCouponView.as_view()),
    path("paySecirty/",PaySecirty.as_view()),
    path("keyview/",KeyView.as_view()),
    path("alipaycallback/",KeyView.as_view()),
    path("orderGet/",OrderGet.as_view()),
    path("orderDel/<str:order_id>/",OrderDelGet.as_view()),
    path("courses/",UserCourseView.as_view()),
    path("addcomment/",CommentView.as_view()),


    path("test/",test),
    path("testaa/",testaa),

    path("testes/", insert_data_to_es),
    path("querysome/", QuerySome.as_view()),
    path("testphone/", TestPhoneView.as_view()),
    path("draw/", draw),
    path("inportE/", InportEView.as_view()),

]
urlpatterns += s1.urls

